package com.tencent.mm.opensdk.diffdev;

import android.util.Log;
import com.tencent.mm.opensdk.diffdev.a.a;

public class DiffDevOAuthFactory {
    public static final int MAX_SUPPORTED_VERSION = 1;
    private static final String TAG = "MicroMsg.SDK.DiffDevOAuthFactory";
    public static final int VERSION_1 = 1;
    private static IDiffDevOAuth v1Instance;

    static {
        DiffDevOAuthFactory.v1Instance = null;
    }

    private DiffDevOAuthFactory() {

    }

    public static IDiffDevOAuth getDiffDevOAuth() {
        return DiffDevOAuthFactory.getDiffDevOAuth(1);
    }

    public static IDiffDevOAuth getDiffDevOAuth(int arg4) {
        IDiffDevOAuth v0 = null;
        Log.v("MicroMsg.SDK.DiffDevOAuthFactory", "getDiffDevOAuth, version = " + arg4);
        if(arg4 > 1) {
            Log.e("MicroMsg.SDK.DiffDevOAuthFactory", "getDiffDevOAuth fail, unsupported version = " + arg4);
        }
        else if(arg4 != 1) {
        }
        else {
            if(DiffDevOAuthFactory.v1Instance == null) {
                DiffDevOAuthFactory.v1Instance = new a();
            }

            v0 = DiffDevOAuthFactory.v1Instance;
        }

        return v0;
    }
}

